package com.wuyb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wuyb.pojo.ChatFilter;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 聊天敏感词过滤
 *
 * @Author: wyb
 * @Date: 2024/01/01/14:13
 * @Description:
 */
@Component
public interface ChatFilterMapper extends BaseMapper<ChatFilter> {

    IPage<ChatFilter> selectByUser(Page<ChatFilter> page);

    ChatFilter selectByUserId(@Param("userId") Integer userId);
}
